package com.modebing.activiti7.delegate;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * 自定义的委托类
 */
@Slf4j
@Component
public class MySecondDelegate implements JavaDelegate {
    /**
     * 回调方法
     *
     * @param delegateExecution
     */
    @Override
    public void execute(DelegateExecution delegateExecution) {
      log.info("第二个服务任务：{}", LocalDateTime.now().toString());
    }
}
